Optimal. Leaf size=59 \[ \frac {b^2 \tanh ^{-1}\left (\frac {\sqrt {a} \tanh (x)}{\sqrt {a+b}}\right )}{\sqrt {a} (a+b)^{5/2}}-\frac {\coth ^3(x)}{3 (a+b)}+\frac {(a+2 b) \coth (x)}{(a+b)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3191, 390, 208} \[ \frac {b^2 \tanh ^{-1}\left (\frac {\sqrt {a} \tanh (x)}{\sqrt {a+b}}\right )}{\sqrt {a} (a+b)^{5/2}}-\frac {\coth ^3(x)}{3 (a+b)}+\frac {(a+2 b) \coth (x)}{(a+b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 208
Rule 390
Rule 3191
Rubi steps
\begin {align*} \int \frac {\text {csch}^4(x)}{a+b \cosh ^2(x)} \, dx &=\operatorname {Subst}\left (\int \frac {\left (1-x^2\right )^2}{a-(a+b) x^2} \, dx,x,\coth (x)\right )\\ &=\operatorname {Subst}\left (\int \left (\frac {a+2 b}{(a+b)^2}-\frac {x^2}{a+b}+\frac {b^2}{(a+b)^2 \left (a-(a+b) x^2\right )}\right ) \, dx,x,\coth (x)\right )\\ &=\frac {(a+2 b) \coth (x)}{(a+b)^2}-\frac {\coth ^3(x)}{3 (a+b)}+\frac {b^2 \operatorname {Subst}\left (\int \frac {1}{a-(a+b) x^2} \, dx,x,\coth (x)\right )}{(a+b)^2}\\ &=\frac {b^2 \tanh ^{-1}\left (\frac {\sqrt {a} \tanh (x)}{\sqrt {a+b}}\right )}{\sqrt {a} (a+b)^{5/2}}+\frac {(a+2 b) \coth (x)}{(a+b)^2}-\frac {\coth ^3(x)}{3 (a+b)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.22, size = 59, normalized size = 1.00 \[ \frac {b^2 \tanh ^{-1}\left (\frac {\sqrt {a} \tanh (x)}{\sqrt {a+b}}\right )}{\sqrt {a} (a+b)^{5/2}}-\frac {\coth (x) \left ((a+b) \text {csch}^2(x)-2 a-5 b\right )}{3 (a+b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.54, size = 1875, normalized size = 31.78 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.39, size = 107, normalized size = 1.81 \[ \frac {b^{2} \arctan \left (\frac {b e^{\left (2 \, x\right )} + 2 \, a + b}{2 \, \sqrt {-a^{2} - a b}}\right )}{{\left (a^{2} + 2 \, a b + b^{2}\right )} \sqrt {-a^{2} - a b}} + \frac {2 \, {\left (3 \, b e^{\left (4 \, x\right )} - 6 \, a e^{\left (2 \, x\right )} - 12 \, b e^{\left (2 \, x\right )} + 2 \, a + 5 \, b\right )}}{3 \, {\left (a^{2} + 2 \, a b + b^{2}\right )} {\left (e^{\left (2 \, x\right )} - 1\right )}^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.14, size = 177, normalized size = 3.00 \[ -\frac {a \left (\tanh ^{3}\left (\frac {x}{2}\right )\right )}{24 \left (a +b \right )^{2}}-\frac {\left (\tanh ^{3}\left (\frac {x}{2}\right )\right ) b}{24 \left (a +b \right )^{2}}+\frac {3 a \tanh \left (\frac {x}{2}\right )}{8 \left (a +b \right )^{2}}+\frac {7 \tanh \left (\frac {x}{2}\right ) b}{8 \left (a +b \right )^{2}}-\frac {b^{2} \ln \left (\sqrt {a +b}\, \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-2 \sqrt {a}\, \tanh \left (\frac {x}{2}\right )+\sqrt {a +b}\right )}{2 \left (a +b \right )^{\frac {5}{2}} \sqrt {a}}+\frac {b^{2} \ln \left (\sqrt {a +b}\, \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )+2 \sqrt {a}\, \tanh \left (\frac {x}{2}\right )+\sqrt {a +b}\right )}{2 \left (a +b \right )^{\frac {5}{2}} \sqrt {a}}-\frac {1}{24 \left (a +b \right ) \tanh \left (\frac {x}{2}\right )^{3}}+\frac {3 a}{8 \left (a +b \right )^{2} \tanh \left (\frac {x}{2}\right )}+\frac {7 b}{8 \left (a +b \right )^{2} \tanh \left (\frac {x}{2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.43, size = 161, normalized size = 2.73 \[ -\frac {b^{2} \log \left (\frac {b e^{\left (-2 \, x\right )} + 2 \, a + b - 2 \, \sqrt {{\left (a + b\right )} a}}{b e^{\left (-2 \, x\right )} + 2 \, a + b + 2 \, \sqrt {{\left (a + b\right )} a}}\right )}{2 \, \sqrt {{\left (a + b\right )} a} {\left (a^{2} + 2 \, a b + b^{2}\right )}} - \frac {2 \, {\left (6 \, {\left (a + 2 \, b\right )} e^{\left (-2 \, x\right )} - 3 \, b e^{\left (-4 \, x\right )} - 2 \, a - 5 \, b\right )}}{3 \, {\left (a^{2} + 2 \, a b + b^{2} - 3 \, {\left (a^{2} + 2 \, a b + b^{2}\right )} e^{\left (-2 \, x\right )} + 3 \, {\left (a^{2} + 2 \, a b + b^{2}\right )} e^{\left (-4 \, x\right )} - {\left (a^{2} + 2 \, a b + b^{2}\right )} e^{\left (-6 \, x\right )}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.45, size = 245, normalized size = 4.15 \[ \frac {2\,b}{{\left (a+b\right )}^2\,\left ({\mathrm {e}}^{2\,x}-1\right )}-\frac {4}{\left (a+b\right )\,\left ({\mathrm {e}}^{4\,x}-2\,{\mathrm {e}}^{2\,x}+1\right )}-\frac {8}{3\,\left (a+b\right )\,\left (3\,{\mathrm {e}}^{2\,x}-3\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{6\,x}-1\right )}-\frac {b^2\,\ln \left (\frac {4\,b^2\,\left (2\,a\,b+8\,a^2\,{\mathrm {e}}^{2\,x}+b^2\,{\mathrm {e}}^{2\,x}+b^2+8\,a\,b\,{\mathrm {e}}^{2\,x}\right )}{a\,{\left (a+b\right )}^5}-\frac {8\,b^2\,\left (b+4\,a\,{\mathrm {e}}^{2\,x}+2\,b\,{\mathrm {e}}^{2\,x}\right )}{\sqrt {a}\,{\left (a+b\right )}^{9/2}}\right )}{2\,\sqrt {a}\,{\left (a+b\right )}^{5/2}}+\frac {b^2\,\ln \left (\frac {8\,b^2\,\left (b+4\,a\,{\mathrm {e}}^{2\,x}+2\,b\,{\mathrm {e}}^{2\,x}\right )}{\sqrt {a}\,{\left (a+b\right )}^{9/2}}+\frac {4\,b^2\,\left (2\,a\,b+8\,a^2\,{\mathrm {e}}^{2\,x}+b^2\,{\mathrm {e}}^{2\,x}+b^2+8\,a\,b\,{\mathrm {e}}^{2\,x}\right )}{a\,{\left (a+b\right )}^5}\right )}{2\,\sqrt {a}\,{\left (a+b\right )}^{5/2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________